package com.hitqz.robot.api.business.model.vo.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;
@Data
@Schema(description = "对话框动态表单内容展示")
public class FormFieldConfigModalVo {
    @Schema(description = "字段id[后台用，不用显示]")
    private Integer id;
    @Schema(description = "字段名称[后台用的英文名称，可以不用显示]")
    private String name;
    @Schema(description = "字段标签，表单显示的名称")
    private String label;
    @Schema(description = "字段类型，text（文本框）、number（数字输入框）、checkbox（复选框）、radio（单选按钮）、select（下拉选择框）")
    private String type;
    @Schema(description = "字段默认值")
    private String defaultValue;
    @Schema(description = "字段当前值")
    private String currentValue;
    @Schema(description = "是否必填")
    private boolean required;
    @Schema(description = "限制最小值[type为number时可填写]")
    private Integer min;
    @Schema(description = "限制最大值[type为number时可填写]")
    private Integer max;
    @Schema(description = "正则表达式校验[type为text时可填写]")
    private String pattern;
    @Schema(description = "下拉框选项[type为checkbox,radio,select时可填写]")
    private List<String> options;
}
